<template>
  <div class="pubinfo-container">
    <div class="header">
    <span>当前位置：</span>
<el-breadcrumb separator-class="el-icon-arrow-right">
  <el-breadcrumb-item>公告总览</el-breadcrumb-item>
  <el-breadcrumb-item>公告查看</el-breadcrumb-item>
</el-breadcrumb></div>
    <div class="pubcontent">
      <h1 class="arti-title">{{pubinfo.title}}</h1>
      <p class="arti-metas">
        <span class="arti-time">{{pubinfo.time}}</span>
        <span class="arti-from">发布者:{{pubinfo.from}}</span>
      </p>
      <div class="article">
        <p>{{pubinfo.article}}</p>
      </div>
    </div>
  </div>
</template>

<script>
import { mapState } from 'vuex';
export default {
  name: '',
  data () {
    return {

    }
  },
  methods: {

  },
  mounted () {
    this.$store.dispatch('getpubinfo');
  },
  computed:{
    ...mapState({
      pubinfo:(state)=>{
        return state.admin.pubinfo
      }
    })
  }
}
</script>

<style lang="less" scoped>
.header {
  height: 30px;
  line-height: 30px;
  border-bottom: 1px solid #ccc;
  .el-breadcrumb {
  display: inline-block;
}
  &>span {
    font-size: 16px;
  }
}
.pubcontent {
  margin-top: 20px;
  .arti-title {
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 28px;
  }
.arti-metas {
  padding-bottom: 10px;
  border-bottom: 1px solid #ccc;
    span {
    margin: 0 10px;
    color: #999;
    font-size: 12px;
    display: inline-block;
  }
}
.article {
  overflow: scroll !important;
  font-size: 15px;
  text-align: justify;
  p{
    line-height: 1.7;
    margin: 8px 0;
    font-family: "微软雅黑";
  }
}
}
</style>
